package com.text.extend1;

public class Text {
    public static void main(String[] args) {
        Manager m = new Manager("TWF001", "张珊", 10000, 5000);
        System.out.println(m.getId() + "," + m.getName() + "," + m.getSalary() + "," + m.getBonus());
        m.work();
        m.eat();

        Cooker c = new Cooker();
        c.setId("TWF002");
        c.setName("李四");
        c.setSalary(9000);
        System.out.println(c.getId() + "," + c.getName() + "," + c.getSalary());
        c.work();
        c.eat();

    }
}
